module JSON
  module Pure
    module Generator
      module GeneratorMethods
        module String
          # This string should be encoded with UTF-8 A call to this method
          # returns a JSON string encoded with UTF16 big endian characters as
          # \u????.
          def to_json(*)
            #'"' << JSON.utf8_to_json(self) << '"'
			'"' << self << '"'
          end
        end
      end
    end
  end
end
